<%@ include file="/header.jsp" %>

<h1>Add new Genre</h1>

<form:form commandName="genre">

    <p><label for="name">Genre Name</label><br/>
    <form:input path="name"/>
    <form:errors path="name" cssStyle="color: red"/>
    </p>

	<c:choose>
	<c:when test="${genre.updateGranted}">
	<p><input type="submit" value="Save"/></p>
	</c:when>
	<c:otherwise>
	<p>Edit not allowed</p>
	</c:otherwise>
	</c:choose> 
    
</form:form>

<%@ include file="/footer.jsp" %>

